package com.Service.Impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.Dao.BaseDaoI;
import com.Entity.DoctorInfo;
import com.Service.DoctorInfoService;

@Service("doctorInfoService")
public class DoctorInfoServiceImpl extends BaseServiceImpl<DoctorInfo> implements
		DoctorInfoService {

	@Autowired
	private BaseDaoI<DoctorInfo> doctorInfoDao;
	

	@Override
	public List<DoctorInfo> findByHosId(int hosid,int page,int rows) {
		Map<String , Object> params =new HashMap<String,Object>();
		String hql="from DoctorInfo d where d.hosId=:hosId";
		params.put("hosId", hosid);
		return doctorInfoDao.find(hql, params, page, rows);
	}

}
